<%--
  Created by IntelliJ IDEA.
  User: admin
  Date: 2022/10/8
  Time: 15:10
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>cap</title>
</head>
<body>
<img src="${pageContext.request.contextPath}/captcha" style="width:85px" id="cap"/>
<script>
  $(function(){
    $("#cap").click(function(){
      //刷新验证码
      path = "${pageContext.request.contextPath}/captcha?"+new Date().getTime();
      $(this).attr("src",path);
    });
  });
</script>
</body>
</html>
